package JavaSE.CODE.javaOO;

public class ExtendTest {
    public static void main(String[] args) {
        /*
        GoodStudent goodStudent = new GoodStudent();
        System.out.println(goodStudent.getMoney());
        goodStudent.setMoney(10000);
        System.out.println(goodStudent.getMoney());

        Student student = new Student();

        System.out.println(student.getNation());
        System.out.println(goodStudent.getNation());
        goodStudent.setNation();
        System.out.println(student.getNation());
        System.out.println(goodStudent.getNation());
        */

        //构造器：父与子
        //GoodStudent goodstudent = new GoodStudent();

        //构造器：有参与无参
        Studentt studentt = new Studentt("abc");



    }
}

class Studentt{
    String name;
    public Studentt(){
        System.out.println("sss");
    };
    public Studentt(String name){
//        this();
        this.name = name;
    }
}